includes("event_publish")
includes("event_raw")
includes("utility")
includes("event_report")
includes("event_store")
includes("running_status_logger")


target("logger")
    set_kind("object")
    add_files("default_logger.cpp","hi_logger.cpp","logger.cpp")
    add_includedirs("include",{public=true})
    add_packages("hilog")

target("hiview_base")
    set_kind("object")
    add_files(
        "app_caller_event.cpp",
        "audit.cpp",
        "audit_log_parser.cpp",
        "dispatch_rule_parser.cpp",
        "event.cpp",
        "event_dispatch_queue.cpp",
        "event_loop.cpp",
        "event_source.cpp",
        "hiview_global.cpp",
        "pipeline.cpp",
        "plugin.cpp",
        "plugin_factory.cpp",
        "plugin_proxy.cpp",
        "sys_event.cpp"
    )
    add_defines("__HIVIEW_OHOS__", "__OHOS_STANDARD_SYSTEM__")
    add_includedirs(
        -- "$hiview_root/include",
        "event_publish/include",
        "event_raw/include",
        "event_store/include",
        "include",
        "logstore/include",
        "running_status_logger/include",
        "utility/include",
        {public=true}
    )
    add_deps(
        "logger",
        "hiview_event_publish",
        "hiview_event_raw_base",
        "hiview_event_raw_decode",
        "hiview_event_raw_encode",
        "hiview_event_report",
        -- "",

        "hiview_utility"
    )
    add_packages("c_utils","jsoncpp","hilog","ffrt")

target("hiviewbase")
    set_kind("static")
    add_deps(
        "hiview_base",
        "logger"
    )
    add_packages(
        "hilog"
    )
	